<!-- Copyright (c) 2019-2020 十三 all rights reserved. -->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="mall/header::head-fragment('NewBee商城-首页','index')">
</head>
<body>
<header th:replace="mall/header::header-fragment"></header>
<content id="content">
    <nav th:replace="mall/header::nav-fragment"></nav>
    <div id="recommend">
        <h2>为你推荐</h2>
        <a href="##" class="more">查看更多>></a>
        <ul>
            <!-- 已配置推荐商品则显示配置内容 -->
            <th:block >
                <th:block th:each="goods : ${goodsList}">
                    <li>
                        <a th:href="@{'/goods/'+${goods.id}}">
                            <img th:src="@{${goods.image}}">
                            <p class="name" th:text="${goods.title}">NewBeeMall</p>
                            <p class="item_price" th:text="${goods.price}">NewBeeMall</p>
                        </a>
                    </li>
                </th:block>
            </th:block>
        </ul>
    </div>
</content>
<div th:replace="mall/footer::footer-fragment"></div>
</body>
</html>